package com.ehome.poct.core.repository;

import com.ehome.core.repository.BaseRepository;
import com.ehome.poct.core.api.dto.check.CheckOnlineRecord;
import com.ehome.poct.core.api.dto.common.DeviceCheckStatusEnum;
import com.ehome.poct.core.api.vo.online.TodoOrderVO;

import java.util.List;

/**
 * 联机检测相关
 * @author gyl
 * @since 2022/3/5 14:40
 **/
public interface OnlineCheckRepository  {

    /**
     *保存联机检测记录
     * @param record
     */
    CheckOnlineRecord saveUniRecord(CheckOnlineRecord record);


    List<TodoOrderVO> getTodoList(Long clinicId);

    /**
     * 删除联机检测记录
     * @param recordId
     */
    int deleteUniRecord(Long recordId);

    /**
     * 根据联测记录id获取联系记录
     * @param recordId
     * @return
     */
    TodoOrderVO findById(Long recordId);

    /**
     * 修改联机记录状态
     * @param recordId
     * @param status
     * @param orderNo
     * @return
     */
    int updateUniRecordStatus(Long recordId, DeviceCheckStatusEnum status, String orderNo);
}
